#coding=utf-8


def Check(data, bNone):
	if bNone and not data:
		return 0
	return int(data)